import type { AppRouteModule } from '/@/router/types'
import { RoleEnum } from '/@/enums/roleEnum'
import { LAYOUT } from '/@/router/constant'

const dashboard: AppRouteModule = {
  path: '/house-list',
  name: 'house-list',
  component: LAYOUT,
  redirect: '/house-list/index',
  meta: {
    orderNo: 12,
    icon: 'ion:grid-outline',
    title: '房间管理',
    hideChildrenInMenu: true,
    roles: [RoleEnum.SuperManager,RoleEnum.HouseManager]
  },
  children: [
    {
      path: 'index',
      name: 'house',
      component: () => import('/@/views/house-list/index.vue'),
      meta: {
        // affix: true,
        title: '房间管理',
        hideMenu: true,
      },
    },
  ],
}

export default dashboard
